.openapi-explorer__code-block-content {
  height: 100%;
  position: relative;
  /* rtl:ignore */
  direction: ltr;
  border-radius: inherit;
}

.openapi-explorer__code-block-title {
  border-bottom: 1px solid var(--ifm-color-emphasis-300);
  font-size: var(--ifm-code-font-size);
  font-weight: 500;
  padding: 0.75rem var(--ifm-pre-padding);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.openapi-explorer__code-block {
  height: 100%;
  border-radius: var(--ifm-global-radius);
  --ifm-pre-background: var(--prism-background-color);
  margin: 0;
  padding: 0;
}

.openapi-explorer__code-block-title
  + .openapi-explorer__code-block-content
  .openapi-explorer__code-block {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.openapi-explorer__code-block-standalone {
  padding: 0;
}

.openapi-explorer__code-block-lines {
  font: inherit;
  /* rtl:ignore */
  float: left;
  min-width: 100%;
  padding: var(--ifm-pre-padding);
}

.openapi-explorer__code-block-lines-numbering {
  // This causes max-height to unset
  // display: table;
  padding: var(--ifm-pre-padding) 0;
}

@media print {
  .openapi-explorer__code-block-lines {
    white-space: pre-wrap;
  }
}

.openapi-explorer__code-block-btn-group {
  display: flex;
  column-gap: 0.2rem;
  position: absolute;
  right: calc(var(--ifm-pre-padding) / 2);
  top: calc(var(--ifm-pre-padding) / 2);
}

.openapi-explorer__code-block-btn-group button {
  display: flex;
  align-items: center;
  background: var(--prism-background-color);
  color: var(--prism-color);
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: var(--ifm-global-radius);
  padding: 0.4rem;
  line-height: 0;
  transition: opacity 200ms ease-in-out;
  opacity: 0;
}

.openapi-explorer__code-block-btn-group button:focus-visible,
.openapi-explorer__code-block-btn-group button:hover {
  opacity: 1 !important;
}

.theme-code-block:hover .openapi-explorer__code-block-btn-group button {
  opacity: 0.4;
}

@media screen and (max-width: 996px) {
  .openapi-explorer__expand-btn {
    display: none !important;
  }
}
